const Datastore = require('nedb')
const path = require('path')

module.exports = {
  class: new Datastore({
    filename: path.resolve(__dirname, 'data/class'),
    autoload: true
  }),
  student: new Datastore({
    filename: path.resolve(__dirname, 'data/student'),
    autoload: true
  }),
  homework: new Datastore({
    filename: path.resolve(__dirname, 'data/homework'),
    autoload: true
  }),
  user: new Datastore({
    filename: path.resolve(__dirname, 'data/user'),
    autoload: true
  })
}
